package com.ww.springboot.boot.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * todo
 *
 * @author wanwei
 * @since 2021-02-18 16:46
 */

@Configuration
public class AutoConfigurationDemo {

    @Bean
    @Primary
    public String test() {
        System.out.println("启动时注入bean");
        return "123456";
    }
}
